package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 订单发票信息
 * @author 
 */
@ApiModel(value = "订单发票信息")
@Data
@TableName(value = "cms_order_invoice")
@Table(name = "cms_order_invoice", comment = "订单发票信息")
public class CmsOrderInvoice implements Serializable {
    /**
     * 发票ID
     */
    @TableId
    @ApiModelProperty(value = "发票ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "发票ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long invoiceId;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    @Column(comment = "订单ID")
    private Long productOrderId;

    /**
     * 发票类型（1:普通发票,2:增值税发票）
     */
    @ApiModelProperty(value = "发票类型（1:普通发票,2:增值税发票）")
    @Column(comment = "发票类型（1:普通发票,2:增值税发票）")
    private Integer invoiceType;

    /**
     * 发票抬头（1:个人,2:公司）
     */
    @ApiModelProperty(value = "发票抬头（1:个人,2:公司）")
    @Column(comment = "发票抬头（1:个人,2:公司）")
    private Integer invoiceRise;

    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    @Column(comment = "企业名称")
    private String enterpriseName;

    /**
     * 税号
     */
    @ApiModelProperty(value = "税号")
    @Column(comment = "税号")
    private String dutyParagraph;

    /**
     * 收票人电话
     */
    @ApiModelProperty(value = "收票人电话")
    @Column(comment = "收票人电话")
    private String contactNumber;

    /**
     * 收票人邮箱
     */
    @ApiModelProperty(value = "收票人邮箱")
    @Column(comment = "收票人邮箱")
    private String contactEmail;

    /**
     * 发票内容
     */
    @ApiModelProperty(value = "发票内容")
    @Column(comment = "发票内容")
    private String invoiceContent;

    /**
     * 状态（0:未开具,1:已开具）
     */
    @ApiModelProperty(value = "状态（0:未开具,1:已开具）")
    @Column(comment = "状态（0:未开具,1:已开具）", defaultValue = "0")
    private Integer state;

    private static final long serialVersionUID = 1L;

}